package com.icorp.istaff.controller;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.icorp.istaff.service.declaration.ILoginService;

@Controller
@RequestMapping("/login")
public class LoginController {

	@Resource(name="LoginService")
	private ILoginService loginService;

	@RequestMapping(method = RequestMethod.POST)
	public String get() {
		boolean retValue = loginService.loginHandler();
		return "mainPage";
	}

	public ILoginService getLoginService() {
		return loginService;
	}

	public void setLoginService(ILoginService loginService) {
		this.loginService = loginService;
	}

	
}
